{% if template == 'index' %}
    {% if seo.meta_title %}
        <title>{{ seo.meta_title | escape}}</title>
    {% else %}
        <title>{{ storeInfo.shop_name }}</title>
    {% endif %}
    {% if seo.meta_descript %}
        <meta name="description" content="{{ seo.meta_descript | escape}}"/>
    {% else %}
        <meta name="description" content="{{ storeInfo.shop_name }}"/>
    {% endif %}
    {% if seo.meta_keywords %}
        <meta name="keywords" content="{{ seo.meta_keywords | join: ',' }}"/>
    {% else %}
        <meta name="keywords" content="{{ storeInfo.shop_name }}"/>
    {% endif %}
{% elsif template == 'collection_list' %}
    <title>{{ lang.collections.list.collections }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'collection_detail' %}
    {% if collection.meta_title %}
        <title>{{ collection.meta_title | escape }}</title>
    {% else %}
        <title>{{ collection.title | default : lang.collections.detail.all_products }} - {{ storeInfo.shop_name }}</title>
    {% endif %}
    {% if collection.meta_descript %}
        <meta name="description" content="{{ collection.meta_descript | escape }}"/>
    {% else %}
        <meta name="description" content="{{ collection.title | default : lang.collections.detail.all_products }}"/>
    {% endif %}
    {% if collection.meta_keywords %}
        <meta name="keywords" content="{{ collection.meta_keywords | join: ',' }}"/>
    {% else %}
        <meta name="keywords" content="{{ collection.title }},{{ storeInfo.shop_name }}"/>
    {% endif %}
{% elsif template == 'product_detail' %}
    {% if product.meta_title %}
        <title>{{ product.meta_title | escape}}</title>
    {% else %}
        <title>{{ product.title }} - {{ storeInfo.shop_name }}</title>
    {% endif %}
    {% if product.meta_descript %}
        <meta name="description" content="{{ product.meta_descript | escape}}"/>
    {% else %}
        <meta name="description" content="{{ product.title }}"/>
    {% endif %}
    {% if product.meta_keywords %}
        <meta name="keywords" content="{{ product.meta_keywords | join: ',' }}"/>
    {% else %}
        <meta name="keywords" content="{{ product.title }},{{ storeInfo.shop_name }}"/>
    {% endif %}
{% elsif template == 'blog_list' %}
    <title>{{ lang.general.blog }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'blog_detail' %}
    {% if blog.meta_title %}
        <title>{{ blog.meta_title | escape}}</title>
    {% else %}
        <title>{{ blog.title }} - {{ storeInfo.shop_name }}</title>
    {% endif %}
    {% if blog.meta_descript %}
        <meta name="description" content="{{ blog.meta_descript | escape}}"/>
    {% else %}
        <meta name="description" content="{{ blog.title }}"/>
    {% endif %}
    {% if blog.meta_keywords %}
        <meta name="keywords" content="{{ blog.meta_keywords | join: ',' }}"/>
    {% else %}
        <meta name="keywords" content="{{ blog.title }},{{ storeInfo.shop_name }}"/>
    {% endif %}
{% elsif template == 'page_detail' %}
    {% if page.meta_title %}
        <title>{{ page.meta_title | escape}}</title>
    {% else %}
        <title>{{ page.title }} - {{ storeInfo.shop_name }}</title>
    {% endif %}
    {% if page.meta_descript %}
        <meta name="description" content="{{ page.meta_descript | escape}}"/>
    {% else %}
        <meta name="description" content="{{ page.title }}"/>
    {% endif %}
    {% if page.meta_keywords %}
        <meta name="keywords" content="{{ page.meta_keywords | join: ',' }}"/>
    {% else %}
        <meta name="keywords" content="{{ page.title }},{{ storeInfo.shop_name }}"/>
    {% endif %}
{% elsif template == 'search_detail' %}
    {% if search.keywords %}
        <title>{{ lang.search.search }} - {{ search.keywords }} - {{ storeInfo.shop_name }}</title>
    {% else %}
        <title>{{ lang.search.search }} - {{ storeInfo.shop_name }}</title>
    {% endif %}
    {% if search.keywords %}
        <meta name="description" content="{{ search.keywords }}"/>
    {% endif %}
    {% if search.keywords %}
        <meta name="keywords" content="{{ search.keywords }},{{ storeInfo.shop_name }}"/>
    {% endif %}
{% elsif template == 'comments_list' %}
    <title>{{ lang.general.reviews }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'comments_detail' %}
    <title>{{ lang.general.reviews }} - {{ product.title }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'cart_list' %}
    <title>{{ lang.cart.list.shopping_cart }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'account_addresses' %}
    <title>{{ lang.account.default.address }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'account_changepassword' %}
    <title>{{ lang.account.default.change_password  }} - {{ storeInfo.shop_name }} </title>
{% elsif template == 'account_default' %}
    <title>{{ lang.account.default.account  }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'account_orders' %}
    <title>{{ lang.account.default.orders  }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'customer_trackingorder' %}
    <title>{{ lang.account.default.trackingorder  }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'account_profilechange' %}
    <title>{{ lang.account.default.profile   }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'account_resetpassword' %}
    <title>{{ lang.general.reset_password_with_email }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'account_trackingorder' %}
    <title>{{ lang.order.tracking_order  }} - {{ info.order_number }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'account_orderdetail' %}
    <title>{{ lang.account.orders_detail.title  }} - {{ account_order_detail.order_number }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'customer_login' %}
    <title>{{ lang.customers.login.title }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'customer_register' %}
    <title>{{ lang.account.title.create }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'customer_resetpassword' %}
    <title>{{ lang.account.title.reset }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'module_unsubscribe' %}
    <title>{{ lang.general.unsubscribe }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'module_expired' %}
    <title>{{ lang.general.error }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'module_login' %}
    <title>{{ lang.general.warning }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'module_checkout_limit' %}
    <title>{{ lang.general.warning }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'module_message' %}
    <title>{{ lang.general.notice }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'module_notfound' %}
    <title>{{ lang.general.not_found }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'module_freedomain_login' %}
    <title>{{ lang.general.warning }} - {{ storeInfo.shop_name }}</title>
{% elsif template == 'module_unavaiable' %}
    <title>{{ lang.general.error }} - {{ storeInfo.shop_name }}</title>
{% endif %}
